package edu.xidian.bdilab.jrbigdata.controller.enterprise;

public enum EnterpriseCode {
    LOGINSUCCESS("2000","企业用户登录成功"),
    REQUIRE_SUCCESS("2001","企业信息发布成功"),
    LOGIN_FAIL("2003","用户名不存在，请注册"),
    USERNAME_NULL("2004","用户名不存在,请注册"),
    REQUIRE_FAILED("2005","企业信息发布失败"),
    PASSWORD_WRONG("2006","密码错误!"),
    REGISTER_FAIL("2007","用户已经存在"),
    REGISTER_SUCCESS("2008","用户注册成功"),
    REGISTER_WRONG("2009","登录失败"),
    PRODUCT_CHECK_FAIL("2010","查询失败，不存在此类型产品"),
    PRODUCT_CHECK_SUCCESS("2011", "查询成功"),
    PRODUCT_REQUEST_SUCCESS("2012","申请成功"),
    PRODUCT_REQUEST_FAIL("2013","申请失败"),
    INFO_CHECK_SUCCESS("2014","企业信息获取成功"),
    INfO_MODIFY_SUCCESS("2015","企业信息修改成功"),
    CHANGEPASSWORD_SUCCESS("2016","密码修改成功"),
    CHANGEPASSWORD_FAILED("2017","密码修改失败"),
    Demand_CHECK_SUCCESS("2018","需求查看成功"),
    Demand_CHECK_Failed("2019","没有检索到对应需求"),
    PRODUCT_CHECK_FAILED("2020","查看失败"),
    RATE_SUCCESS("2021","评级成功"),
    RATE_FAILED("2022","评级失败");



    private String code;
    private String message;

    EnterpriseCode(String code, String message){
        this.code = code;
        this.message = message;
    }

    public void setCode(String code){ this.code = code; }
    public String getCode(){ return this.code; };

    public void setMessage(String message){ this.message = message; }
    public String getMessage(){ return this.message; }
}
